#ifndef WEATHER_H
#define WEATHER_H

#include <QMainWindow>
#include <QMap>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <form.h>

namespace Ui {
class Weather;
}

class Weather : public QMainWindow
{
    Q_OBJECT

public:
    explicit Weather(QWidget *parent = 0);
    ~Weather();

protected:
    void init_citykey();
private slots:
    void on_updateBt_clicked();
    void read_data(QNetworkReply *reply);

private:
    Ui::Weather *ui;
    QMap<QString,QString> citykey;

    QNetworkAccessManager manager;
    Form *items;

};

#endif // WEATHER_H
